﻿using HCQ2_IBLL;
using HCQ2_Model.DocModel;
using HCQ2_Model.DocModel.HeadModel;
using HCQ2_Model.VR.Model;
using HCQ2_Model.VR.Params;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_BLL
{
    public partial class T_VRHeadWordMainBLL: IT_VRHeadWordMainBLL
    {
        /// <summary>
        ///  获取单词检测记录列表
        /// </summary>
        /// <param name="param">查询参数</param>
        /// <param name="total">记录总数</param>
        /// <returns></returns>
        public List<WordDetectionResult> GetWordDetectionList(WordDetectionParam param, out int total)
        {
            return DBSession.IT_VRHeadWordMainDAL.GetWordDetectionList(param, out total);
        }
        /// <summary>
        ///  获取单词体验排行榜数据
        /// </summary>
        /// <param name="param"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        public List<WordRankResult> GetWordRankList(WordRankParam param, out int total)
        {
            return DBSession.IT_VRHeadWordMainDAL.GetWordRankList(param, out total);
        }
        /// <summary>
        ///  获取用户单词测试成绩列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public List<WordRankUserResult> GetWordRankByUserList(WordCoreByUser param, int user_id)
        {
            return DBSession.IT_VRHeadWordMainDAL.GetWordRankByUserList(param,user_id);
        }
        /// <summary>
        ///  获取自己最好成绩
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public WordRankResult GetMyWordRank(WordMydRankParam param)
        {
            return DBSession.IT_VRHeadWordMainDAL.GetMyWordRank(param);
        }
        /// <summary>
        ///  获取测试详细记录列表
        /// </summary>
        /// <param name="wh_id"></param>
        /// <returns></returns>
        public List<HeadWordDetailedResult> GetMyDetectionList(int wh_id)
        {
            return DBSession.IT_VRHeadWordMainDAL.GetMyDetectionList(wh_id);
        }
    }
}